home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dskut / fat109.zip / FAT.DOC next >
Text File  |  1990-01-16  |  9KB  |  236 lines

  1.  
  2.                                    FAT 1.09
  3.                                    ---------
  4.  
  5.         FAT is a simple program that can be used to display the chain of
  6.         clusters (disk allocation units) that belong to a disk file, to
  7.         determine which file "owns" a specified cluster or sector,
  8.         and to display general information about a disk.
  9.  
  10.         FAT is a passive program; that is, it does not perform any
  11.         functions that alter disk data.  It is an inquiry program only.
  12.  
  13.         NOTE: like CHKDSK, FAT may change the default drive and/or
  14.         directory while it is working.  If the program is interrupted,
  15.         no harm will be done, but you may find that your drive/directory
  16.         has been changed.
  17.  
  18.         Versions 1.08 and 1.09 correct problems with large disk
  19.         partitions under DOS 4.0.  I think we've finally got it right
  20.         this time.
  21.  
  22.         Syntax summary
  23.         --------------
  24.  
  25.             fat filespec [/D] [/H] [/I]     (display chain)
  26.             fat [d:] /Cn [/D] [/H] [/I]     (owner of cluster n)
  27.             fat [d:] /Sn [/D] [/H] [/I]     (owner of sector n)
  28.             fat [d:] /I                     (disk info only)
  29.  
  30.         Switches:
  31.  
  32.             /C  Cluster owner
  33.             /D  Decimal output
  34.             /H  Hex output
  35.             /I  info
  36.             /S  Sector owner
  37.  
  38.         The commands are detailed below.
  39.  
  40.  
  41.         Displaying the cluster chain for a file or directory
  42.         ----------------------------------------------------
  43.  
  44.         The syntax for this function is:
  45.  
  46.                 fat [d:]path
  47.                 fat [d:][path]file
  48.  
  49.         If only a path (and optional drive) is present, the chain of
  50.         clusters belonging to the subdirectory file itself is displayed.
  51.         If a filename is present, the chain of clusters belonging to the
  52.         named file is displayed.  The filename may contain wildcards, in
  53.         which case the chain for all matching files will be displayed.
  54.  
  55.         Examples:
  56.  
  57.             fat c:\dir              ; Display chain for c:\dir itself,
  58.                                     ; i.e., which clusters does the
  59.                                     ; subdirectory file occupy.
  60.  
  61.             fat c:\dir\file1.txt    ; Display chain for file1.txt
  62.  
  63.             fat c:\dir\*.*          ; Display chain for all files
  64.                                     ; in c:\dir
  65.  
  66.         FAT interprets missing portions of the filename to be equivalent
  67.         to "*".  Thus:
  68.  
  69.             fat *       == fat *.*
  70.             fat foo     == fat foo.*
  71.             fat foo*    == fat foo*.*
  72.  
  73.         If you wish to display the chain for file "foo", but not
  74.         "foo.txt", use an explicit ".", as in:
  75.  
  76.             fat foo.
  77.  
  78.  
  79.         Finding the owner of a cluster or sector
  80.         ----------------------------------------
  81.  
  82.         The syntax for this function is:
  83.  
  84.             fat [d:] /Cn            ; Find owner of cluster N
  85.             fat [d:] /Sn            ; Find owner of sector N
  86.  
  87.         For example:
  88.  
  89.             fat /C160               ; Find owner of cluster 160
  90.  
  91.             fat b: /C112H           ; Find owner of cluster 112H
  92.                                     ; on drive B.
  93.  
  94.             fat /S14D               ; Find owner of sector 014DH
  95.  
  96.         See below for more information on how the input numbers are
  97.         interpreted (as decimal or hex).
  98.  
  99.  
  100.         Disk information
  101.         ----------------
  102.  
  103.         You can append /I (Info) to any FAT command to display general
  104.         information about the selected disk.  You can also run FAT with
  105.         only a /I parameter (and optional drive) to just display the
  106.         information.
  107.  
  108.         Examples:
  109.  
  110.             fat /I                  ; Info about default drive
  111.             fat B: /I               ; Info about drive B
  112.             fat c:\foo/i            ; Chain for foo, plus info
  113.             fat /i /c166            ; Owner of cluster 166H, plus info
  114.  
  115.  
  116.         Input radix
  117.         -----------
  118.  
  119.         Cluster and sector numbers for the /C and /S parameters are
  120.         assumed to be decimal, unless the numbers contain a hex digit
  121.         (A-F) or are suffixed with an 'H':
  122.  
  123.             /c119       ; decimal
  124.             /s11A       ; hex
  125.             /c116H      ; hex
  126.  
  127.  
  128.         Output radix
  129.         ------------
  130.  
  131.         The output radix defaults to the input radix; that is, if your
  132.         sector or cluster is input in decimal, the output will be
  133.         displayed in decimal.  Where there is no numeric input (for
  134.         example, "fat c:*.*"), decimal is assumed.
  135.  
  136.         You can specify an explicit output radix by using the /H (hex)
  137.         or /D (decimal) switches:
  138.  
  139.             fat /c116 /h    ; Input decimal, output hex
  140.             fat /s12A /d    ; Input hex, output decimal
  141.             fat c:*.sys     ; No input, output decimal
  142.             fat c:*.sys /h  ; No input, output hex
  143.  
  144.         Output radix has no effect on the /Info display, which is mostly
  145.         decimal.
  146.  
  147.  
  148.         Media types warning
  149.         -------------------
  150.  
  151.         FAT knows about certain media types (360K, 1.44M, fixed disks,
  152.         etc.).  If FAT encounters a type about which it knows nothing,
  153.         it will continue to run but display a warning.  If this warning
  154.         is displayed, the results may or may not be accurate (and in
  155.         fact, the program may or may not run to completion!).  If the
  156.         results appear to be reasonable, they are probably accurate.
  157.  
  158.         Versions prior to 1.06 would simply cancel when an unknown type
  159.         was encountered.
  160.  
  161.  
  162.         Revision history
  163.         ----------------
  164.         Version 1.09 - 01/16/90
  165.             Still fixing problems with large partitions
  166.  
  167.         Version 1.08 - 01/08/90
  168.             Corrected some problems with large partitions
  169.  
  170.         Version 1.07 - 12/18/89
  171.             Support for large partitions under DOS 4.0
  172.  
  173.         Version 1.06 - 8/3/89
  174.             Support for media type F0
  175.             Allowed program to proceed with unknown media types
  176.  
  177.         Version 1.05 - 6/13/88
  178.             Converted to Microsoft C
  179.             Fixed a problem with subdirectory names containing '.'
  180.  
  181.         Versions 1.03/1.04 - 1/21/87 and 7/15/87
  182.             Fixed a few problems with 16-bit FATs
  183.  
  184.         Version 1.02 - 9/13/86
  185.             First public release
  186.  
  187.  
  188.         Copyright/License/Warranty
  189.         --------------------------
  190.  
  191.         This document and the program file FAT.EXE ("the software") are
  192.         copyrighted by the author.  The copyright owner hereby licenses
  193.         you to: use the software; make as many copies of the program and
  194.         documentation as you wish; give such copies to anyone; and
  195.         distribute the software and documentation via electronic means.
  196.         There is no charge for any of the above.
  197.  
  198.         However, you are specifically prohibited from charging, or
  199.         requesting donations, for any such copies, however made; and
  200.         from distributing the software and/or documentation with
  201.         commercial products without prior permission.  An exception is
  202.         granted to not-for-profit user's groups, which are authorized to
  203.         charge a small fee (not to exceed $7) for materials, handling,
  204.         postage, and general overhead.  NO FOR-PROFIT ORGANIZATION IS
  205.         AUTHORIZED TO CHARGE ANY AMOUNT FOR DISTRIBUTION OF COPIES OF
  206.         THE SOFTWARE OR DOCUMENTATION, OR TO INCLUDE COPIES OF THE
  207.         SOFTWARE OR DOCUMENTATION WITH SALES OF THEIR OWN PRODUCTS.
  208.  
  209.         THIS INCLUDES A SPECIFIC PROHIBITION AGAINST FOR-PROFIT
  210.         ORGANIZATIONS DISTRIBUTING THE SOFTWARE, EITHER ALONE OR WITH
  211.         OTHER SOFTWARE, AND CHARGING A "HANDLING" OR "MATERIALS" FEE OR
  212.         ANY OTHER SUCH FEE FOR THE DISTRIBUTION.  NO FOR-PROFIT
  213.         ORGANIZATION IS AUTHORIZED TO INCLUDE THE SOFTWARE ON ANY MEDIA
  214.         FOR WHICH MONEY IS CHARGED.  PERIOD.
  215.  
  216.         There is no restriction on the use of this software in
  217.         commercial or institutional environments.
  218.